enable_language(ASM)
set_property(SOURCE ${ARCH}/atoms.S PROPERTY LANGUAGE C)

SET(ARCH_SOURCES 
	${ARCH}/ArchController.cpp
	${ARCH}/ArchCpu.cpp
	${ARCH}/ArchPlatform.cpp
	${ARCH}/atoms.S
	)

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
SET(ARCH_LINK_FLAGS "-Wl,-b,elf32-i386 -Wl,-m,elf_i386 -Wl,-T,${CMAKE_CURRENT_SOURCE_DIR}/${ARCH}/kernel.lds")
